﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;

public class FightPetInfoVo
{
    //位置
    public int pos;

    public int petid;

    public string petname;

    public string petgrade;

    public string petlevel;

    public string petproplevel;

    public string petfightpower;

    public string petMaxHP;
    //普攻 string
    public string petPhyDamage;
    //绝攻 string
    public string petMagDamage;
    //普防 string
    public string petPhyDef;
    //绝防 string
    public string petMagDef;
    //命中 string
    public string petPhyHitProb;
    //闪避 string
    public string petPhyDodgeProb;
    //暴击 string
    public string petPhyVaProb;
    //韧性 string
    public string petPhyVaDefProb;
    //格挡 string
    public string petPhyWardProb;
    //破击 string
    public string petDePhyWardProb;
    //招架 string
    public string petPhyGuardProb;
    //破招 string
    public string petDePhyGuardProb;

    public FightPetInfoVo(XmlAttributeCollection fightInfoXml )
		{

            petid = int.Parse(fightInfoXml["petid"].Value);
            if (0 == petid) return;

			pos 	= int.Parse(fightInfoXml["pos"].Value);

            petname = fightInfoXml["petname"].Value;
            petgrade = fightInfoXml["petgrade"].Value;
            petfightpower = fightInfoXml["petfightpower"].Value;
            petlevel = fightInfoXml["@petlevel"].Value;
            petproplevel = fightInfoXml["@petproplevel"].Value;

            petMaxHP = fightInfoXml["@PetMaxHP"].Value;
            petPhyDamage = fightInfoXml["@PetPhyDamage"].Value;
            petMagDamage = fightInfoXml["@PetMagDamage"].Value;
            petPhyDef = fightInfoXml["@PetPhyDef"].Value;
            petMagDef = fightInfoXml["@PetMagDef"].Value;
            petPhyHitProb = fightInfoXml["@PetPhyHitProb"].Value;
            petPhyDodgeProb = fightInfoXml["@PetPhyDodgeProb"].Value;
            petPhyVaProb = fightInfoXml["@PetPhyVaProb"].Value;
            petPhyVaDefProb = fightInfoXml["@PetPhyVaDefProb"].Value;
            petPhyWardProb = fightInfoXml["@PetPhyWardProb"].Value;
            petDePhyWardProb = fightInfoXml["@PetDePhyWardProb"].Value;
            petPhyGuardProb = fightInfoXml["@PetPhyGuardProb"].Value;
            petDePhyGuardProb = fightInfoXml["@PetDePhyGuardProb"].Value;

		}


}